<%--
  Created by IntelliJ IDEA.
  User: tugou
  Date: 2017/5/9
  Time: 21:54
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"
          name="viewport" id="viewport">
    <title>人员管理</title>
    <script src="<%=basePath%>js/jquery.min.js"></script>
    <script src="<%=basePath%>js/layer/layer.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/main.css">
    <script>
        var msg = "${msg.errmsg}";
        if(msg != null && msg != ""){
            layer.msg(msg, {
                time: 20000, //20s后自动关闭
                btn: [ '确定']
            });
        }
    </script>
</head>
<body>
<header>
    <h1><a href="./index.html">报名学车管理后台</a></h1>
</header>
<div id="user_nav" >
    <a href="<%=basePath%>sys/changePaw"><h1>${sysuser.userName}</h1></a>
    <h2>
        <c:if test="${sysuser.userType == 1}">
            系统管理员
        </c:if>
        <c:if test="${sysuser.userType == 2}">
            运营人员
        </c:if>
    </h2>
    <a href="<%=basePath%>admin/loginOut"><h3>退出</h3></a>
</div>
<div id="sidebar">
    <ul>
        <li><a href="<%=basePath%>sys/index/1"><i class="icon icon_home"></i><span>首页</span></a></li>
        <li class="active"><a href="#"><i class="icon icon_users"></i><span>人员管理</span></a></li>
        <li><a href="<%=basePath%>sys/getStudentList"><i
                class="icon icon_chapter"></i><span>学员信息管理</span></a></li>
        <li><a href="<%=basePath%>sys/examsPage"><i class="icon icon_exams"></i><span>学车点管理</span></a></li>
        <li><a href="<%=basePath%>sys/settingPage"><i class="icon icon_setting"></i><span>网站设置</span></a></li>
    </ul>
</div>
<div id="content">
    <div class="title_h1">
        <h1>人员管理</h1>
    </div>
    <div class="setting">
        <div id="datelist">
            <div class="datelist_title">
                <div class="icon_align_justify"></div>
                <h1>用户列表</h1>
                <div class="icon_user_add"><a href="<%=basePath%>sys/addUser" target="_self">添加用户</a></div>
            </div>
            <table class="datetable">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>帐号</th>
                    <th>姓名</th>
                    <th>用户类型</th>
                   <%-- <th>操作</th>--%>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="uer" items="${userList}">
                    <tr>
                        <td>${uer.id}</td>
                        <td>${uer.loginName}</td>
                        <td>${uer.userName}</td>
                        <c:if test="${uer.userType == 1}">
                            <td>系统管理员</td>
                        </c:if>
                        <c:if test="${uer.userType == 2}">
                            <td>运营人员</td>
                        </c:if>
                  <%--      <td><div class="btn_group"><a href="javascript:;" title="删除用户" target="_self"><em class="icon_delete"></em></a></div></td>--%>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
            <!--<div class="datatables_toolbar">
                <div class="datatables_paginat"><a href="#">首页</a><a href="#">上一页</a><a class="active" href="#">1</a><a href="#">2</a><a href="#">3</a><a href="#">下一页</a><a href="#">尾页</a></div>
            </div>-->
        </div>
    </div>
    <footer>© 2017 All Rights Reserved</footer>
</div>
</body>
</html>
